Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } * { box-sizing: border-box; margin: 0; } html, body { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #F1E8E1; } main { position: relative; background-color: #F1E8E1; width: 100vmin; height: 100vmin; --gap: 4vmin; --size: 28vmin; overflow: hidden; } section { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: var(--gap); width: 100%; height: 100%; } css-doodle { width: var(--size); height: var(--size); border-radius: 100%; animation: rotate 40s linear infinite; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
console.log("Event Fired") setInterval(function() { document.querySelectorAll('css-doodle').forEach(function(o){ o.update() }) }, 4000)